package com.creative.core.domain;

public class VerifyRegex {
    //    不校验
    public static final String NO = "";
    //   IP地址
    public static final String IP = "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$";
    // 正整数
    public static final String POSITIVE_INTEGER = "^[1-9]\\d*$";
    //    由数字、26个英文字母或者下划线组成的字符串
    public static final String NUMBER_LETTER_UNDER_LINE = "^\\W+$";
    //   邮箱
    public static final String EMAIL = "^(\\w+([-.][A-Za-z0-9]+)*){3,18}@\\w+([-.][A-Za-z0-9]+)*\\.\\w+([-.][A-Za-z0-9]+)*$";

    /**
     * 电话
     */
    public static final String PHONE = "^1[3-9]\\d{9}$";
    //    数字，字母，中文，下划线
    public static final String CONMON = "^[\\w\\u4e00-\\u9fa5]+$";
    //    密码只能是数字，字母，特殊字符 8-18位
    public static final String PASSWORD = "^[a-zA-Z0-9!@#$%^&*()_+={};':\",.<>/?\\|\\[\\]`~\\-]{8,18}$";
    //    金额
    public static final String MONEY = "^-?\\d+(\\.\\d{1,2})?$\n";
    //     字母开头，由数字、英文字母或者下划线组成
    public static final String ACCOUNT = "^[a-zA-Z0-9_]{1,}$";

}
